package link.luyu.plugin.brochain;

import java.util.Map;
import link.luyu.protocol.link.Connection;
import link.luyu.protocol.link.Driver;
import link.luyu.protocol.link.LuyuPlugin;
import link.luyu.protocol.link.PluginBuilder;

@LuyuPlugin("Brochain")
public class BrochainPluginBuilder extends PluginBuilder {

    @Override
    public Connection newConnection(Map<String, Object> properties) {
        return new BrochainConnection(properties);
    }

    @Override
    public Driver newDriver(Connection connection, Map<String, Object> properties) {
        return new BrochainDriver(connection, properties);
    }
}
